package com.itheima.main;

public class C1 {
    public static void main(String[] args) {
        int[] arr = { 9, 5, 2, 7 };
        print(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
    }
    public static void print(int[] arr2){
        for(int i=0;i<arr2.length;i++){
            if( i % 2 != 0){
                arr2[i]+=10;
            }
        }
    }
    }









